package com.shiyuanshenghong.service.analysispovertyservice.impl;

/**
 * Created by fengxinzi on 2017/12/18.
 */

import com.shiyuanshenghong.entity.PoorNumberModel;
import com.shiyuanshenghong.service.analysispovertyservice.PovertyNumber;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by fengxinzi on 2017/12/18.
 * 贫困户数top10镇街与计划脱贫户数
 * 2017-12-18
 *  苏积钰
 */
@Service
public class PovertyNumberImpl implements PovertyNumber {


    /**
     * 根据乡镇id来查询或者乡镇名称
     * @param id  县id
     * @return 返回贫困户数top10镇街和计划脱贫户数
     */

    @Override
    public List<PoorNumberModel> QueryAllById(Integer id) {
        List<PoorNumberModel> list=new ArrayList<PoorNumberModel>();
        for(int i=0;i<10;i++)
        {
            PoorNumberModel poorNumberModel=new PoorNumberModel("前卫镇",32,32);
            list.add(poorNumberModel);
        }
        return list;
    }


}
